package cn.wen.mybatis.framework.session;import java.sql.Connection;/** * SqlSession工厂接口  需要实现类来实现 工厂模式的 * 实现解耦  减少new的次数 */public interface SqlSessionFactory {    /**     * 下面是实现重载来实现参数创建SqlSession类     * @return     */    SqlSession openSession();    SqlSession openSession(boolean autoCommit);    SqlSession openSession(Connection connection);    SqlSession openSession(TransactionIsolationLevel level);    SqlSession openSession(ExecutorType execType);    SqlSession openSession(ExecutorType execType, boolean autoCommit);    SqlSession openSession(ExecutorType execType, TransactionIsolationLevel level);    SqlSession openSession(ExecutorType execType, Connection connection);    Configuration getConfiguration();}